<?php /* Smarty version Smarty-3.1.6, created on 2017-05-04 13:34:05
         compiled from "D:/test.cn/Test/Admin/View\Role\auth.html" */ ?>
<?php /*%%SmartyHeaderCode:940758fff01b274fb4-90881554%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '492a5e0ee7b547c7b75a621dbb08be7dfe418877' => 
    array (
      0 => 'D:/test.cn/Test/Admin/View\\Role\\auth.html',
      1 => 1493204899,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '940758fff01b274fb4-90881554',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_58fff01b30c6d',
  'variables' => 
  array (
    'info' => 0,
    'auth1' => 0,
    'a' => 0,
    'ids' => 0,
    'auth2' => 0,
    'aa' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_58fff01b30c6d')) {function content_58fff01b30c6d($_smarty_tpl) {?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>《C语言程序设计》在线考试系统- 分配角色权限 </title>
<meta name="Copyright" content="Douco Design." />
<link href="<?php echo @Admin_URL;?>
css/public.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<?php echo @Admin_URL;?>
js/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo @Admin_URL;?>
js/global.js"></script>
</head>
<?php echo $_smarty_tpl->getSubTemplate ("../Index/top.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

 <div id="dcMain">
   <!-- 当前位置 -->
<div id="urHere">题库首页<b>></b><strong>分配角色权限</strong> </div>   <div id="manager" class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
    <h3><a href="<?php echo @__CONTROLLER__;?>
/role.html" class="actionBtn" style="margin-right:10px">返回</a>
      <a href="<?php echo @__MODULE__;?>
/Auth/auth.html" class="actionBtn add" style="margin-right:10px">添加权限</a> 分配角色权限[<?php echo $_smarty_tpl->tpl_vars['info']->value['role_name'];?>
]</h3>
    <form action="<?php echo @__SELF__;?>
" method="post" enctype="multipart/form-date">
        <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
     <tr>
      <th width="30" align="center">编号</th>
      <th align="left">权限分类</th>
      <th align="left">权限列表</th>
     </tr>
          <?php  $_smarty_tpl->tpl_vars['a'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['a']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['auth1']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['a']->iteration=0;
foreach ($_from as $_smarty_tpl->tpl_vars['a']->key => $_smarty_tpl->tpl_vars['a']->value){
$_smarty_tpl->tpl_vars['a']->_loop = true;
 $_smarty_tpl->tpl_vars['a']->iteration++;
?>
          <tr>
      <td align="center"><?php echo $_smarty_tpl->tpl_vars['a']->iteration;?>
</td>
      <td align="left">
      <input type="checkbox" name="auth_id[]" value="<?php echo $_smarty_tpl->tpl_vars['a']->value['auth_id'];?>
"<?php if (in_array($_smarty_tpl->tpl_vars['a']->value['auth_id'],$_smarty_tpl->tpl_vars['ids']->value)){?> checked="checked"<?php }?>/>
      <?php echo $_smarty_tpl->tpl_vars['a']->value['auth_name'];?>
</td>
      <td align="left">
      <?php  $_smarty_tpl->tpl_vars['aa'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['aa']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['auth2']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['aa']->key => $_smarty_tpl->tpl_vars['aa']->value){
$_smarty_tpl->tpl_vars['aa']->_loop = true;
?> 
      	<?php if ($_smarty_tpl->tpl_vars['aa']->value['auth_pid']==$_smarty_tpl->tpl_vars['a']->value['auth_id']){?>
      <input type="checkbox" name="auth_id[]" value="<?php echo $_smarty_tpl->tpl_vars['aa']->value['auth_id'];?>
"<?php if (in_array($_smarty_tpl->tpl_vars['aa']->value['auth_id'],$_smarty_tpl->tpl_vars['ids']->value)){?> checked="checked"<?php }?>/>
      <span style="margin:0 10px 0 10px;" ><?php echo $_smarty_tpl->tpl_vars['aa']->value['auth_name'];?>
</span>
      	<?php }?>
      <?php } ?>
      </td>
     </tr>
     <?php } ?>
       </table>
         <input class="btn" type="submit" style="margin:10px 0 0 50%" value="提交" />
         </form>
                       </div>
 </div>
 <div class="clear"></div>
<div id="dcFooter">
 <div id="footer">
  <div class="line"></div>
  <ul>
《C语言程序设计》在线考试系统，版权所有
  </ul>
 </div>
</div><!-- dcFooter 结束 -->
<div class="clear"></div> </div>
</body>
</html><?php }} ?>